package com.icart.entities;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

public class MkDisccardintcEntityPK implements Serializable {
    private long mouldid;
    private long tcid;

    @Column(name = "mouldid")
    @Id
    public long getMouldid() {
        return mouldid;
    }

    public void setMouldid(long mouldid) {
        this.mouldid = mouldid;
    }

    @Column(name = "tcid")
    @Id
    public long getTcid() {
        return tcid;
    }

    public void setTcid(long tcid) {
        this.tcid = tcid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MkDisccardintcEntityPK that = (MkDisccardintcEntityPK) o;

        if (mouldid != that.mouldid) return false;
        if (tcid != that.tcid) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (mouldid ^ (mouldid >>> 32));
        result = 31 * result + (int) (tcid ^ (tcid >>> 32));
        return result;
    }
}
